<script>
var common;
var jxd_data;
function setCommon(data){
	common=data;
};
//获取登录信息
yanhx.addCommon("ready",function(){
	$.java({
		action:'common.getLoginData',
		param:{str_array:[{{item.loginData}}]},
		callback:function(data){
			for(var k in data){
				var val=data[k];
				yanhx.exec("mutilHandle.save",{
					key:k,
					val:val
				});
			}
		}
	});
});
function setData(data){
	jxd_data=data;
	for(var k in data){
		var val=data[k];
		$("#"+k).fillSelect(val);
		yanhx.exec("mutilHandle.save",{
			key:k,
			val:val
		});
	}
}
//获取文本及和数据字典
yanhx.addCommon("load",function(){
	var textFile=[{{item.text}}];
	$(textFile).each(function(){
		var t=this;
		$("<script src='/valid/"+t+"_valid.js' type='text/javascript' />").appendTo(document.head);
	});
	$.java({
		action:'common.text',
		param:{str_array:textFile},
		callback:setCommon
	});
	$.java({
		action:'common.data',
		param:{str_array:[{{item.data}}]},
		callback:setData
	});
});
</script>